package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;
/*发货*/
@Entity
public class Fahuo {
    private int fhId;//发货id
    private Kehu kH;//客户id
    private Timestamp fhTime;//发货时间
    private String fhBianhao;//发货编号
    private String fhPeople;//发货人
    private String fhFanshi;//发货方式
    private String fhZhuangtai;//发货状态
    private String fhWuliugs;//发货物流公司
    private String fhWuliuhao;//发货物流号
    private Dingdan dingdanByDdId;//订单对象（订单id）

    private String fhDizhi;//发货地址
    private String fhShouhuoren;//收货人
    private String fhPhone;//电话

   // private Huanhuo huanhuoByHhId;//换货对象

    private Integer fhYs;

    private String fhDdhh;

    public List<Dingdanxiangqing> fhDingDanXiangQing;

    public List<Huanhuoxiangqing> hhXiangQing;//换货详情

    private Jiaofujihua jiaofujihua;//交付计划
    public List<Jiaofujihuaxiangqing> fhJiaoJiXiangQing;

 /* @ManyToOne
    @JoinColumn(name = "hh_id", referencedColumnName = "hh_id")
    public Huanhuo getHuanhuoByHhId() {
        return huanhuoByHhId;
    }

    public void setHuanhuoByHhId(Huanhuo huanhuoByHhId) {
        this.huanhuoByHhId = huanhuoByHhId;
    }
*/
    public Fahuo() {
    }

    public Fahuo(Dingdan dingdanByDdId) {
        this.dingdanByDdId = dingdanByDdId;
    }

    @Basic
    @Column(name = "fh_dizhi")
    public String getFhDizhi() {
        return fhDizhi;
    }

    public void setFhDizhi(String fhDizhi) {
        this.fhDizhi = fhDizhi;
    }

    @Basic
    @Column(name = "fh_shouhuoren")
    public String getFhShouhuoren() {
        return fhShouhuoren;
    }

    public void setFhShouhuoren(String fhShouhuoren) {
        this.fhShouhuoren = fhShouhuoren;
    }

    @Basic
    @Column(name = "fh_phone")
    public String getFhPhone() {
        return fhPhone;
    }

    public void setFhPhone(String fhPhone) {
        this.fhPhone = fhPhone;
    }


    @Column(name = "fh_ddhh")
    public String getFhDdhh() {
        return fhDdhh;
    }

    public void setFhDdhh(String fhDdhh) {
        this.fhDdhh = fhDdhh;
    }

    @Basic
    @Column(name = "fh_ys")
    public Integer getFhYs() {
        return fhYs;
    }

    public void setFhYs(Integer fhYs) {
        this.fhYs = fhYs;
    }

    @Id
    @Column(name = "fh_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getFhId() {
        return fhId;
    }

    public void setFhId(int fhId) {
        this.fhId = fhId;
    }

    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getkH() {
        return kH;
    }

    public void setkH(Kehu kH) {
        this.kH = kH;
    }

    @Basic
    @Column(name = "fh_time", nullable = false)
    public Timestamp getFhTime() {
        return fhTime;
    }

    public void setFhTime(Timestamp fhTime) {
        this.fhTime = fhTime;
    }

    @Basic
    @Column(name = "fh_bianhao", nullable = true, length = 200)
    public String getFhBianhao() {
        return fhBianhao;
    }

    public void setFhBianhao(String fhBianhao) {
        this.fhBianhao = fhBianhao;
    }

    @Basic
    @Column(name = "fh_people", nullable = true, length = 200)
    public String getFhPeople() {
        return fhPeople;
    }

    public void setFhPeople(String fhPeople) {
        this.fhPeople = fhPeople;
    }

    @Basic
    @Column(name = "fh_fanshi", nullable = true, length = 200)
    public String getFhFanshi() {
        return fhFanshi;
    }

    public void setFhFanshi(String fhFanshi) {
        this.fhFanshi = fhFanshi;
    }

    @Basic
    @Column(name = "fh_zhuangtai", nullable = true, length = 200)
    public String getFhZhuangtai() {
        return fhZhuangtai;
    }

    public void setFhZhuangtai(String fhZhuangtai) {
        this.fhZhuangtai = fhZhuangtai;
    }

    @Basic
    @Column(name = "fh_wuliugs", nullable = true, length = 200)
    public String getFhWuliugs() {
        return fhWuliugs;
    }

    public void setFhWuliugs(String fhWuliugs) {
        this.fhWuliugs = fhWuliugs;
    }

    @Basic
    @Column(name = "fh_wuliuhao", nullable = true, length = 200)
    public String getFhWuliuhao() {
        return fhWuliuhao;
    }

    public void setFhWuliuhao(String fhWuliuhao) {
        this.fhWuliuhao = fhWuliuhao;
    }


    @ManyToOne
    @JoinColumn(name = "dd_id", referencedColumnName = "dd_id")
    public Dingdan getDingdanByDdId() {
        return dingdanByDdId;
    }

    public void setDingdanByDdId(Dingdan dingdanByDdId) {
        this.dingdanByDdId = dingdanByDdId;
    }

    @ManyToOne
    @JoinColumn(name = "jj_id", referencedColumnName = "jj_id")
    public Jiaofujihua getJiaofujihua() {
        return jiaofujihua;
    }

    public void setJiaofujihua(Jiaofujihua jiaofujihua) {
        this.jiaofujihua = jiaofujihua;
    }
}
